package com.example.attrimirror.model;

import java.util.List;

public class CheckinRecord {
    private String date;
    private List<DailyItem> daily;  // 改为DailyItem列表
    private List<ChoreItem> chores;  // 改为ChoreItem列表
    private List<SuggestionItem> suggestions;  // 改为SuggestionItem列表
    private boolean isRetroactive;
    private boolean isFirstCheckin;
    private static DisplaySettings displaySettings = new DisplaySettings();

    // 内部类定义
    public static class DailyItem {
        private String routine;
        public String getRoutine() { return routine; }
        public void setRoutine(String routine) { this.routine = routine; }
    }

    public static class ChoreItem {
        private String note;
        public String getNote() { return note; }
        public void setNote(String note) { this.note = note; }
    }

    public static class SuggestionItem {
        private String advice;
        public String getAdvice() { return advice; }
        public void setAdvice(String advice) { this.advice = advice; }
    }

    // 添加显示设置
    public static class DisplaySettings {
        private boolean showDaily = true;
        private boolean showChores = true;
        private boolean showSuggestions = true;

        public boolean isShowDaily() {
            return showDaily;
        }

        public void setShowDaily(boolean showDaily) {
            this.showDaily = showDaily;
        }

        public boolean isShowChores() {
            return showChores;
        }

        public void setShowChores(boolean showChores) {
            this.showChores = showChores;
        }

        public boolean isShowSuggestions() {
            return showSuggestions;
        }

        public void setShowSuggestions(boolean showSuggestions) {
            this.showSuggestions = showSuggestions;
        }
    }

    public static DisplaySettings getDisplaySettings() {
        return displaySettings;
    }

    // 构造函数
    public CheckinRecord(String date, List<DailyItem> daily, List<ChoreItem> chores, 
                        List<SuggestionItem> suggestions, boolean isRetroactive, 
                        boolean isFirstCheckin) {
        this.date = date;
        this.daily = daily;
        this.chores = chores;
        this.suggestions = suggestions;
        this.isRetroactive = isRetroactive;
        this.isFirstCheckin = isFirstCheckin;
    }

    // Getters and setters
    public String getDate() { return date; }
    public void setDate(String date) { this.date = date; }
    
    public List<DailyItem> getDaily() { return daily; }
    public void setDaily(List<DailyItem> daily) { this.daily = daily; }
    
    public List<ChoreItem> getChores() { return chores; }
    public void setChores(List<ChoreItem> chores) { this.chores = chores; }
    
    public List<SuggestionItem> getSuggestions() { return suggestions; }
    public void setSuggestions(List<SuggestionItem> suggestions) { this.suggestions = suggestions; }
    
    public boolean isRetroactive() { return isRetroactive; }
    public void setRetroactive(boolean retroactive) { isRetroactive = retroactive; }
    
    public boolean isFirstCheckin() { return isFirstCheckin; }
    public void setFirstCheckin(boolean firstCheckin) { isFirstCheckin = firstCheckin; }
} 